package com.ease.framework.gef4p.figures {
   import com.ease.framework.figures.IFigure;
   import com.ease.framework.flex.controls.Handle;
   import com.ease.framework.gef.ui.ISelection;

   /**
    * 这是图形化的节点元素的顶级元素。
    *
    * 在Process和SwimLine中，都是包含此元素。此元素有两种子类：INodeFigure和IArtifactFigure。
    * Node:是流程flow上的节点，而Artifact则是备注节点.
    */
   public interface IVertexFigure extends IFigure, ISelection {

      function getHandleByType(type:int):Handle;

      function onMoving():void;

      function getDraggingFigure():IDraggingFigure;

      function refreshFigureWithSubstitute(sfigure:IDraggingFigure):void;

      function get draggingWidth():Number;

      function set draggingWidth(value:Number):void;

      function get draggingHeight():Number;

      function set draggingHeight(value:Number):void;
      
      function get allowDrag():Boolean;
      
      function set allowDrag(value:Boolean):void;
   }
}